package com.wangjw.designPattern.singleton;

/**
 * Created by wangjw on 18/8/16.
 */
public class HungrySingleton {

    private static final HungrySingleton mHungrySingleton = new HungrySingleton();

    private HungrySingleton() {
        System.out.println("Singleton is create");
    }

    public static HungrySingleton getHungrySingleton() {
        return mHungrySingleton;
    }

    public static void createString() {
        System.out.println("createString in Singleton");
    }

    public static void main(String[] args) {
        HungrySingleton.createString();
    }
}
